package com.example.springboot.mapper;

import com.example.springboot.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2022-04-30
 */
public interface MessageMapper extends BaseMapper<Message> {

    @Update("update message set statement = \"已读\" where user_id = #{user_id}")
    boolean readAll(Integer user_id);

}
